package book_management.operation.impl;

import book_management.book.BookList;
import book_management.operation.IOperation;

//下降书籍
public class RemoveOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("请输入你要下架的书籍名称：");
        String nameBook = scanner.nextLine();
        if(bookList.contains(nameBook)){
            bookList.RemoveBook(nameBook);
            System.out.println("下架成功~");
        }else{
            System.out.println("没有这本书~");
        }

    }
}
